$(function(){
  var data = {
		url:path+'/financial/account-info',
		columns: [{field:'checked',checkbox:true,},{field:'accountInfoId',visible:false},{field:'accountInfoThem',title:'账户主题'},{field:'accountInfoCardNumber',title:'开户账号'},{field:'accountInfoBank',title:'开户银行'},{field:'accountInfoCardType',title:'卡号类型'},{field:'accountInfoCardName',title:'账户名称'},{field:'accountInfoCreateDate',title:'开户日期'},{field:'accountInfoAddress',title:'开户地点'},{field:'accountInfoAgent',title:'经办人'},{field:'accountInfoRemark',title:'备注'}],
		method: 'GET',//请求方式（*）
        contentType : "application/x-www-form-urlencoded;charset='UTF-8'", //加上这个才可以接收到值
		sortable: true,
        sortOrder: "asc",
        search: false,
        exportOptions:{  
           fileName: '报销信息'+exportDate.toLocaleString(),//文件名称设置  
           worksheetName: 'sheet1',//表格工作区名称  
           tableName: '报销信息',
           ignoreColumn: [0,1],
		   unaffectedColumn:0
        }
  }
  
  var param = [{text:"开户银行",name:"accountInfoBank",type:"text",verify:"chineseStr"},{text:"账户主题",name:"accountInfoThem",type:"text",verify:"cnw"},{text:"账户账号",name:"accountInfoCardNumber",type:"text",verify:"bankCard"},{text:"开户日期",name:"dateScope",verify:"",type:"text"},{text:"卡号类型",name:"accountInfoCardType",verify:"chineseStr",type:"text"},{text:"开户地点",name:"accountInfoAddress",verify:"cnw",type:"text"}];
  
  renderTable(cTable,data);
  
  createQueryPanel(param);
  
  laydate.render({
	 elem: '[name="dateScope"]'
	 ,type: 'datetime'
	 ,range: true
  });
  
  form.render();
  
})

$("#remove_btn").click(
	function(){
		requestRemoveData("accountInfoId","/financial/account-info");
	}
)

$('#add_btn').click(function(){
	openOperateWindow({
		title: "新增供应商",
		url: "/admin/enterpriseManagement/financialManagement/accountInfo/account-info-add.jsp"
	})
});
 
$('#modify_btn').click(function(){
	openOperateWindow({
		title: "新增供应商",
		isUpdate: true,
		url: "/admin/enterpriseManagement/financialManagement/accountInfo/account-info-update.jsp"
	})
});
